package com.skillworld.webapp.model.user;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;

public class UserRanking
{
	private Long idRankingU;
	private Date date;
	private User user1;
	private User user2;
	private User user3;
	private User user4;
	private User user5;

	
	public UserRanking() {
	}


	@SequenceGenerator(name = "UserRankingIdGenerator", sequenceName = "UserRankingSeq")
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "UserRankingIdGenerator")
	@Column(name = "idRankingU")
	public Long getIdRankingU() {
		return idRankingU;
	}


	public void setIdRankingU(Long idRankingU) {
		this.idRankingU = idRankingU;
	}

	@Column(name = "date")
	public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "idUser1")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idUser")
	public User getUser1() {
		return user1;
	}


	public void setUser1(User user1) {
		this.user1 = user1;
	}

	@Column(name = "idUser2")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idUser")
	public User getUser2() {
		return user2;
	}


	public void setUser2(User user2) {
		this.user2 = user2;
	}


	@Column(name = "idUser3")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idUser")
	public User getUser3() {
		return user3;
	}


	public void setUser3(User user3) {
		this.user3 = user3;
	}


	@Column(name = "idUser4")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idUser")
	public User getUser4() {
		return user4;
	}


	public void setUser4(User user4) {
		this.user4 = user4;
	}

	@Column(name = "idUser5")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idUser")
	public User getUser5() {
		return user5;
	}


	public void setUser5(User user5) {
		this.user5 = user5;
	}
}
